package com.chart.chart.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chart.chart.domian.ChartConfigs;
import com.chart.chart.domian.ChartStatistics;
import com.chart.chart.domian.vo.StatisticsVo;
import com.chart.common.core.domain.AjaxResult;
import org.apache.ibatis.annotations.*;

import java.util.Date;
import java.util.List;


/**
 * @author
 */
@Mapper
public interface ChartStatisticsMapper extends BaseMapper<ChartStatistics> {

    List<StatisticsVo> getOpers(ChartStatistics chartStatistics);

    //如果 operation_total 为 NULL，则将其替换为 0

    // void incrementOperationTotal( @Param("userId") Long userId Long operationTotal);
    // 插入 ChartStatistics 记录
    void incrementOperationTotal(
            @Param("userId") Long userId,
            @Param("operationTotal") Long operationTotal);


    AjaxResult operationTotal(@Param("userId") Long userId);


}
